<script type="text/javascript" src="<?=base_url('jqplot/jqplot.js')?>"></script>
<script type="text/javascript">
$(document).ready(function() {
    var data = [<?=$sess['num']?>];
    var data_max = <?=$sess['max']+5?>; //Y轴最大刻度
    var line_title = ["A"]; //曲线名称
    var y_label = "访问量"; //Y轴标题
    var x_label = "时间"; //X轴标题
    var x = <?=$sess['day']?>; //定义X轴刻度值
    var title = "这是标题"; //统计图标标题
    j.jqplot.diagram.base("chart1", data, line_title, "", x, x_label, y_label, data_max, 1);

});
</script>
<?php if(!empty($count)):?>
<div class="crumb-wrap">
    <div class="crumb-list"> <i class="icon-font">&#xe06b;</i>
        <a href="<?=site_url('order/manage?sid=2')?>">
            您有<span style="color:red"><?=$count?></span>条未处理订单，请及时处理！
        </a>
    </div>
</div>
<?php endif;?>
<div class="result-wrap">
    <div class="result-title">
        <h1>
            尊敬的 管理员，欢迎您的登录！</h1>
    </div>
    <div>
        您上次登录的时间为：
        <?=date('Y-m-d H:i:s',$_SESSION['user']['login_time'])?></div>
</div>

<div class="result-wrap">
    <div class="result-title">
        <h1>网站访问量统计</h1>
    </div>
    <div id="chart1"></div>
</div>